var scriptList = [
	//customObjectsPath + 'FormStyler.js'
];

function startApp(){
		var req = {
				serviceName : 'GetHeaderTitle',
				args: [
					{test1: 'test arguments 1'},
					{test2: 'test arguments 2'},
					{test3: 'test arguments 3'}
				]
		};

		$.ajax({
			data: req,
			success: function(response,t){
				$('#parent-body').append(t);
			}
		});
	//$('#body-inner-content form[name="addArticleForm"]')
	//$('#body-inner-content form[name="addArticleForm"]').children()
	if($('#body-inner-content form').size() > 0){
		$('#add-article-form-container').addClass('add-article-container');
		//$('#update-article-form-container').addClass('add-article-container');
		FormStyler.init();
		//$('#body-inner-content form li div.form_error').addClass('ui-state-error ui-corner-all');
		//$('#body-inner-content form li div.form_error').css('padding', '0.7em');
	}
	
	if($('#body-inner-content table').size() > 0 ){
		$('#body-inner-content table').addClass('display');
		$('#body-inner-content table').dataTable({
			"bFilter": false,
			'bJQueryUI': true,
    	 	'sPaginationType': "full_numbers",
			"bProcessing": true,
			"bServerSide": true,
			"sAjaxSource": ajaxUrl + '/req/TablePaginate',
			"fnServerData": function( sUrl, aoData, fnCallback ) {
				$.ajax( {
					type: "GET",
					"url": sUrl,
					"data": aoData,
					"success": fnCallback,
					"dataType": "json",
					"cache": false
				} );
			}
	    });
	}
/*
	var $manageArticlesTabs = $('#ManageArticlesTabs').tabs({
		select: function(event, ui){
			debugger;
		    // Objects available in the function context:
		    ui.tab     // anchor element of the selected (clicked) tab
		    ui.panel   // element, that contains the selected/clicked tab contents
		    ui.index   // zero-based index of the selected (clicked) tab
		},
		show: function(event, ui){
			debugger;
		}
	});
*/
	
	
/*
	tabs.bind('tabsselect', function(event, ui) {
		debugger;
	    // Objects available in the function context:
	    ui.tab     // anchor element of the selected (clicked) tab
	    ui.panel   // element, that contains the selected/clicked tab contents
	    ui.index   // zero-based index of the selected (clicked) tab
	
	});
*/
	
	
}